package api;

class PrintUtil{
    public static <T>void printArray(T[] array) {
        for (T element : array) {
            System.out.print(element + " ");
        }
    }
}

public class GenericDemo03 {
    public static void main(String[] args) {
        Integer[] array={1,2,3};
        PrintUtil.printArray(array);
        String[] strArray={"A","B"};
        PrintUtil.printArray(strArray);
    }
}
